#pragma once

#include "Primitive.h"
#include <xstring>
#include <iostream>

//
// <string length encoded in base ten ASCII>:<string data>
// Note that there is no constant beginning delimiter, and 
// no ending delimiter.
//    Example: 4:spam represents the string "spam"
//

namespace Torrent
{
    namespace Bencode
    {    
        class String : public Primitive<std::string>
        {
        public:
            String(std::istream& stream);
            ~String(void);

            virtual void print(std::ostream& stream, bool debug = false);
        };
    } //Bencode
}//Torrent